package cn.foolishbird.hamal.frame.constant;

/**
 * @author Eric
 * @version 1.0
 * @date 2020-03-05
 */
@DictKeyName("Common-Is")
public enum IsEnum implements BusinessEnum {

    TRUE(1, "是"),
    FALSE(0, "否");

    private int state;

    private String desc;

    IsEnum(int state, String desc) {
        this.state = state;
        this.desc = desc;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public int value() {
        return this.state;
    }

    @Override
    public String content() {
        return this.desc;
    }
}
